package com.atguigu.r2dbc.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

import java.time.Instant;

/**
 * @author Jungle
 * @create 2024-01-17 16:42
 */
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
@Table("t_book")
public class BookAuthor {
    @Id
    private Long id;
    private String title;
    private Long authorId;
    private Instant publishTime;  ////响应式中日期的映射用 Instant 或者 LocalXxx
    private Author author;  //
}
